package com.kuang.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper;
import com.kuang.entity.Account;
import com.kuang.mapper.AccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName: AccountController
 * @Description: TODO
 * @Author: Tian
 * @Data: 2021/9/820:33
 * @Version: 1.0
 **/

@RestController
public class AccountController extends BaseController{

	@Autowired
	private AccountMapper accountMapper;

	@GetMapping("/account/list")
	public List<Account> index(){
		return accountMapper.selectList(new QueryWrapper<>());
	}



}
